/* Move all your CSS here */
@import url('https://fonts.googleapis.com/css2?family=Noto+Color+Emoji&family=Segoe+UI+Emoji&display=swap');

body {
    background: linear-gradient(45deg, #2d0a3f, #1a0522);
    color: #ffffff;
    font-family: 'Segoe UI', 'Segoe UI Emoji', 'Noto Color Emoji', Tahoma, Geneva, sans-serif;
    margin: 0;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.title-container {
    text-align: center;
    margin-bottom: 30px;
}

.title-text {
    color: #ff79c6;
    text-shadow: 0 0 10px #ff79c6, 0 0 20px #ff79c6;
    font-size: 2.5em;
    margin: 0;
    padding: 20px 0;
}

.title-emoji {
    font-family: 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif;
    font-size: 1.2em;
    vertical-align: middle;
    margin: 0 10px;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
}

.image-card {
    background: rgba(40, 42, 54, 0.8);
    border-radius: 15px;
    overflow: hidden;
    border: 2px solid #ff79c6;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), 
                transform 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    animation: float 6s ease-in-out infinite;
    position: relative;
    transform-style: preserve-3d;
    perspective: 1500px;
    margin: 10px;
    will-change: transform;
    transform-origin: center center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3),
               0 0 20px rgba(255, 121, 198, 0.2);
}

.image-card:hover {
    transform: scale(1.08) translateY(-5px);
    filter: brightness(1.1);
    box-shadow: 
        0 10px 20px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(255, 121, 198, 0.4),
        0 0 50px rgba(255, 121, 198, 0.2),
        0 0 70px rgba(255, 121, 198, 0.1);
    animation: throb 1.5s ease-in-out infinite;
    z-index: 10;
}

.image-container {
    position: relative;
    padding-top: 100%;
    overflow: hidden;
    background: #1a0522;
    cursor: pointer;
    transform-style: preserve-3d;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border-radius: 15px;
}

.image-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.image-info {
    padding: 15px;
    background: rgba(40, 42, 54, 0.9);
    z-index: 5;
    transform-style: preserve-3d;
    transition: transform 0.2s ease-out;
}

.formatted-filename {
    color: #ff79c6;
    margin: 0;
    font-size: 0.9em;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.formatted-date {
    color: #bd93f9;
    font-size: 0.8em;
    margin-top: 5px;
}

/* Sorting controls */
.sorting-controls {
    position: sticky;
    top: 0;
    z-index: 90;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 20px auto;
    padding: 15px 20px;
    background: linear-gradient(180deg, rgba(45, 10, 63, 0.95), rgba(26, 5, 34, 0.95));
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 121, 198, 0.2);
    transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.controls-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 0 20px;
}

.top-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.sort-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.btn-sort {
    background: rgba(40, 42, 54, 0.8);
    border: 2px solid #ff79c6;
    color: #ff79c6;
    padding: 8px 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-sort:hover {
    background: rgba(255, 121, 198, 0.2);
    transform: translateY(-2px);
}

.btn-sort.active {
    background: #ff79c6;
    color: #282a36;
}

.search-container {
    flex: 0 1 300px;
    min-width: 200px;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 10px 40px 10px 15px;
    border-radius: 8px;
    border: 2px solid #ff79c6;
    background: rgba(40, 42, 54, 0.9);
    color: #ff79c6;
    font-size: 0.9em;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    box-shadow: 0 0 20px rgba(255, 121, 198, 0.3);
    background: rgba(40, 42, 54, 1);
}

.search-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.1em;
    pointer-events: none;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.modal-image {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border: 2px solid #ff79c6;
    border-radius: 5px;
    box-shadow: 0 0 20px rgba(255, 121, 198, 0.4);
}

.modal-info {
    color: #ff79c6;
    margin: 15px 0;
    text-align: center;
    font-size: 1.1em;
    text-shadow: 0 0 10px rgba(255, 121, 198, 0.4);
}

.modal-controls {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.modal-button {
    background: rgba(40, 42, 54, 0.8);
    border: 2px solid #ff79c6;
    color: #ff79c6;
    padding: 12px 25px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1em;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(5px);
}

.modal-button:hover {
    background: rgba(255, 121, 198, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 121, 198, 0.3);
}

.modal-button:active {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    top: -40px;
    right: -40px;
    background: rgba(40, 42, 54, 0.8);
    border: 2px solid #ff79c6;
    color: #ff79c6;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 24px;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.close-modal:hover {
    background: rgba(255, 121, 198, 0.2);
    transform: rotate(90deg);
}

/* Navigation buttons */
.nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(40, 42, 54, 0.8);
    border: 2px solid #ff79c6;
    color: #ff79c6;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 24px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(5px);
    z-index: 1010;
}

.nav-button:hover {
    background: rgba(255, 121, 198, 0.2);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 0 20px rgba(255, 121, 198, 0.3);
}

.nav-button:active {
    transform: translateY(-50%) scale(0.95);
}

.prev-button {
    left: 20px;
}

.next-button {
    right: 20px;
}

/* Add button icons */
.modal-button[onclick="downloadImage"]::before {
    content: "⬇️";
    font-size: 1.2em;
}

.modal-button[onclick="deleteImage"]::before {
    content: "🗑️";
    font-size: 1.2em;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .modal-content {
        max-width: 95%;
    }

    .close-modal {
        top: 10px;
        right: 10px;
    }

    .nav-button {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .modal-controls {
        flex-direction: column;
        gap: 10px;
    }

    .modal-button {
        width: 100%;
        justify-content: center;
    }
}

/* Server status */
.server-status {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(40, 42, 54, 0.95);
    padding: 8px 15px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9em;
    z-index: 95;
    transition: all 0.3s ease;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #50fa7b;
    transition: background-color 0.3s ease;
}

.server-status.disconnected .status-dot {
    background: #ff5555;
}

.server-status.disconnected {
    background: rgba(255, 85, 85, 0.2);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Selection styles */
.image-card.selected {
    border-color: #50fa7b;
    transform: translateY(-5px);
    box-shadow: 
        0 0 20px rgba(80, 250, 123, 0.4),
        0 0 40px rgba(80, 250, 123, 0.2),
        0 0 60px rgba(80, 250, 123, 0.1);
    animation: selectedThrob 2s ease-in-out infinite;
}

.selection-actions {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(40, 42, 54, 0.95);
    padding: 15px 25px;
    border-radius: 30px;
    display: flex;
    gap: 15px;
    z-index: 1000;
    transition: transform 0.3s ease;
    border: 2px solid #ff79c6;
}

.selection-actions.active {
    transform: translateX(-50%) translateY(0);
}

.btn-delete-selected {
    background: rgba(255, 85, 85, 0.2);
    color: #ff5555;
    border: 2px solid #ff5555;
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9em;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-delete-selected:hover {
    background: rgba(255, 85, 85, 0.4);
    transform: translateY(-2px);
}

.selection-count {
    font-size: 0.8em;
    opacity: 0.8;
}

/* Loading and messages */
.loading {
    text-align: center;
    padding: 20px;
    color: #ff79c6;
    font-size: 1.2em;
}

.gallery-message {
    text-align: center;
    padding: 40px;
    color: #ff79c6;
    font-size: 1.2em;
    background: rgba(40, 42, 54, 0.8);
    border-radius: 15px;
    margin: 20px;
    border: 2px solid #ff79c6;
}

/* Responsive design */
@media (max-width: 768px) {
    .top-controls {
        flex-direction: column;
        gap: 15px;
    }

    .sort-buttons {
        width: 100%;
        justify-content: center;
    }

    .search-container {
        width: 100%;
    }
}

/* Add throbbing animation */
@keyframes throb {
    0% {
        transform: scale(1.08) translateY(-5px);
        box-shadow: 
            0 10px 20px rgba(0, 0, 0, 0.4),
            0 0 30px rgba(255, 121, 198, 0.4),
            0 0 50px rgba(255, 121, 198, 0.2);
    }
    50% {
        transform: scale(1.1) translateY(-7px);
        box-shadow: 
            0 15px 25px rgba(0, 0, 0, 0.5),
            0 0 40px rgba(255, 121, 198, 0.5),
            0 0 60px rgba(255, 121, 198, 0.3),
            0 0 80px rgba(255, 121, 198, 0.2);
    }
    100% {
        transform: scale(1.08) translateY(-5px);
        box-shadow: 
            0 10px 20px rgba(0, 0, 0, 0.4),
            0 0 30px rgba(255, 121, 198, 0.4),
            0 0 50px rgba(255, 121, 198, 0.2);
    }
}

@keyframes selectedThrob {
    0% {
        box-shadow: 
            0 0 20px rgba(80, 250, 123, 0.4),
            0 0 40px rgba(80, 250, 123, 0.2),
            0 0 60px rgba(80, 250, 123, 0.1);
    }
    50% {
        box-shadow: 
            0 0 30px rgba(80, 250, 123, 0.5),
            0 0 50px rgba(80, 250, 123, 0.3),
            0 0 70px rgba(80, 250, 123, 0.2);
    }
    100% {
        box-shadow: 
            0 0 20px rgba(80, 250, 123, 0.4),
            0 0 40px rgba(80, 250, 123, 0.2),
            0 0 60px rgba(80, 250, 123, 0.1);
    }
}

/* Toast notification */
.toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(40, 42, 54, 0.95);
    color: #ff79c6;
    padding: 12px 24px;
    border-radius: 25px;
    border: 2px solid #ff79c6;
    z-index: 2000;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* Update delete button styles */
.btn-delete-selected {
    background: rgba(255, 85, 85, 0.2);
    color: #ff5555;
    border: 2px solid #ff5555;
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9em;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-delete-selected:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-delete-selected:not(:disabled):hover {
    background: rgba(255, 85, 85, 0.4);
    transform: translateY(-2px);
}

/* Selection count badge */
.selection-count {
    background: rgba(255, 85, 85, 0.3);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8em;
}

/* Context Menu */
.context-menu {
    position: fixed;
    background: rgba(40, 42, 54, 0.95);
    border: 2px solid #ff79c6;
    border-radius: 8px;
    padding: 5px 0;
    min-width: 200px;
    z-index: 1000;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    display: none;
}

.context-menu-item {
    padding: 8px 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s ease;
}

.context-menu-item:hover {
    background: rgba(255, 121, 198, 0.2);
}

.context-menu-item.delete {
    color: #ff5555;
}

.context-menu-item.delete:hover {
    background: rgba(255, 85, 85, 0.2);
}

.context-menu-separator {
    height: 1px;
    background: rgba(255, 121, 198, 0.2);
    margin: 5px 0;
}

.context-icon {
    font-size: 1.2em;
}

/* Rename Dialog */
.dialog {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(40, 42, 54, 0.95);
    border: 2px solid #ff79c6;
    border-radius: 15px;
    padding: 20px;
    z-index: 2000;
    display: none;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

.rename-input {
    width: 100%;
    padding: 10px;
    margin: 15px 0;
    background: rgba(40, 42, 54, 0.8);
    border: 2px solid #ff79c6;
    border-radius: 5px;
    color: #fff;
    font-size: 1em;
}

.dialog-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.dialog-button {
    padding: 8px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dialog-button.cancel {
    background: transparent;
    border: 2px solid #ff79c6;
    color: #ff79c6;
}

.dialog-button.confirm {
    background: #ff79c6;
    border: 2px solid #ff79c6;
    color: #282a36;
}

.dialog-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 121, 198, 0.3);
}

/* New Images Modal */
.new-images-modal .modal-content {
    background: rgba(40, 42, 54, 0.95);
    border-radius: 15px;
    padding: 20px;
    max-width: 80vw;
    max-height: 80vh;
    overflow-y: auto;
}

.new-images-modal .modal-title {
    color: #ff79c6;
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.5em;
}

.new-images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
    max-height: 60vh;
    overflow-y: auto;
    padding: 10px;
}

.new-image-card {
    position: relative;
    border: 2px solid #ff79c6;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.new-image-card:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 121, 198, 0.4);
}

.new-image-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.new-image-card .image-info {
    padding: 10px;
    background: rgba(40, 42, 54, 0.9);
}

.new-image-card.selected {
    border-color: #50fa7b;
    box-shadow: 0 0 20px rgba(80, 250, 123, 0.4);
}

.modal-button.delete {
    background: rgba(255, 85, 85, 0.2);
    border-color: #ff5555;
    color: #ff5555;
}

.modal-button.delete:hover {
    background: rgba(255, 85, 85, 0.4);
}

/* Workflow Modal Styles */
.workflow-modal .modal-content {
    background: rgba(40, 42, 54, 0.95);
    border-radius: 15px;
    padding: 20px;
    min-width: 300px;
    max-width: 500px;
}

.workflow-list {
    max-height: 400px;
    overflow-y: auto;
    margin: 20px 0;
    border: 1px solid rgba(255, 121, 198, 0.2);
    border-radius: 8px;
    padding: 10px;
}

.workflow-item {
    padding: 12px 15px;
    margin: 5px 0;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    background: rgba(40, 42, 54, 0.8);
    border: 1px solid transparent;
}

.workflow-item:hover {
    background: rgba(255, 121, 198, 0.1);
    border-color: rgba(255, 121, 198, 0.3);
    transform: translateX(5px);
}

.workflow-item.selected {
    background: rgba(80, 250, 123, 0.1);
    border-color: #50fa7b;
}

.workflow-icon {
    font-size: 1.2em;
}

.workflow-name {
    flex-grow: 1;
    color: #ff79c6;
}

.workflow-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 121, 198, 0.2);
}

.workflow-info {
    color: #bd93f9;
    font-size: 0.9em;
}

.run-workflow {
    background-color: #50fa7b !important;
    border-color: #50fa7b !important;
    color: #282a36 !important;
    font-weight: bold;
}

.run-workflow:disabled {
    background-color: #2c4a3e !important;
    border-color: #2c4a3e !important;
    color: rgba(255, 255, 255, 0.5) !important;
    cursor: not-allowed;
}

.run-workflow:not(:disabled):hover {
    background-color: #69ff94 !important;
    box-shadow: 0 0 30px rgba(80, 250, 123, 0.5) !important;
}

#selectedWorkflowName {
    font-style: italic;
    font-size: 0.9em;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
    vertical-align: bottom;
}

/* Side Panel Styles - Updated */
.side-panel {
    position: fixed;
    left: -230px;
    top: 0;
    bottom: 0;
    width: 250px;
    background: linear-gradient(135deg, rgba(45, 10, 63, 0.95), rgba(26, 5, 34, 0.95));
    border-right: 2px solid #ff79c6;
    padding: 20px;
    z-index: 100;
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 5px 0 20px rgba(255, 121, 198, 0.2);
    backdrop-filter: blur(10px);
}

.side-panel:hover,
.side-panel.visible,
.side-panel.pinned {
    left: 0;
    box-shadow: 5px 0 30px rgba(255, 121, 198, 0.3);
}

/* Add hover area with subtle indicator */
.side-panel-trigger {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 20px;
    z-index: 99;
    background: linear-gradient(90deg, 
        rgba(255, 121, 198, 0.1), 
        transparent);
    transition: background 0.3s ease;
}

.side-panel-trigger:hover {
    background: linear-gradient(90deg, 
        rgba(255, 121, 198, 0.2), 
        transparent);
}

/* Panel Header */
.panel-header {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(255, 121, 198, 0.3);
    text-align: center;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    user-select: none;
}

.panel-header:hover {
    background: rgba(255, 121, 198, 0.1);
    border-radius: 8px;
}

.panel-header h3 {
    color: #ff79c6;
    margin: 0;
    font-size: 1.3em;
    text-shadow: 0 0 10px rgba(255, 121, 198, 0.5);
    padding: 10px;
    transition: transform 0.3s ease;
}

.panel-header:hover h3 {
    transform: scale(1.05);
}

/* Update pin indicator */
.panel-header::after {
    content: '📌';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%) scale(0.8);
    opacity: 0;
    transition: all 0.3s ease;
}

.panel-header:hover::after {
    opacity: 0.7;
    transform: translateY(-50%) scale(1);
}

.side-panel.pinned .panel-header::after {
    opacity: 1;
    transform: translateY(-50%) scale(1) rotate(-45deg);
    color: #50fa7b;
}

/* Remove old pin button */
.pin-button {
    display: none;
}

/* Panel Buttons */
.panel-button {
    width: 100%;
    padding: 12px 16px;
    background: rgba(40, 42, 54, 0.6);
    border: 2px solid #ff79c6;
    border-radius: 8px;
    color: #ff79c6;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-shadow: 0 0 5px rgba(255, 121, 198, 0.3);
    position: relative;
    overflow: hidden;
}

.panel-button:hover {
    background: rgba(255, 121, 198, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 121, 198, 0.3);
}

.panel-button:active {
    transform: translateY(0);
}

.panel-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 121, 198, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.panel-button:hover::before {
    width: 300px;
    height: 300px;
    opacity: 0;
}

/* Button Icons */
.button-icon {
    font-size: 1.2em;
    transition: transform 0.3s ease;
}

.panel-button:hover .button-icon {
    transform: scale(1.2);
}

/* Main Content Transition */
.main-content {
    margin-left: 20px;
    width: calc(100% - 20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 100vh;
    padding-top: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.main-content.shifted {
    margin-left: 250px;
    width: calc(100% - 250px);
}

.main-content.shifted .sorting-controls {
    margin-left: 0;
    width: 100%;
}

/* Responsive Design */
@media (max-width: 768px) {
    .side-panel {
        left: -180px;
        width: 200px;
    }
    
    .main-content.shifted {
        margin-left: 200px;
        width: calc(100% - 200px);
    }
}

@media (max-width: 576px) {
    .side-panel {
        left: -100%;
        width: 80%;
    }
    
    .side-panel:hover,
    .side-panel.visible,
    .side-panel.pinned {
        left: 0;
    }
    
    .main-content {
        margin-left: 0;
        width: 100%;
    }
    
    .main-content.shifted {
        margin-left: 0;
        width: 100%;
    }
}

.panel-separator {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 10px 0;
}

.restart-button {
    margin-top: auto !important; /* Push to bottom */
    background-color: #50fa7b !important; /* Dracula theme green */
    border-color: #50fa7b !important;
    color: #282a36 !important; /* Dark background color for contrast */
    font-weight: bold !important;
    text-shadow: none !important;
    box-shadow: 0 0 20px rgba(80, 250, 123, 0.3) !important;
}

.restart-button:hover {
    background-color: #69ff94 !important; /* Lighter green on hover */
    box-shadow: 0 0 30px rgba(80, 250, 123, 0.5) !important;
}

.restart-button:disabled {
    background-color: #2c4a3e !important;
    border-color: #2c4a3e !important;
    color: rgba(255, 255, 255, 0.5) !important;
    cursor: not-allowed;
}

/* Update the button icon for the restart button */
.restart-button .button-icon {
    color: #282a36 !important; /* Dark color for the icon */
}

/* Add these console modal styles */
.console-modal .modal-content {
    background: rgba(40, 42, 54, 0.95);
    border-radius: 15px;
    padding: 20px;
    width: 80vw;
    max-width: 1000px;
    height: 80vh;
    display: flex;
    flex-direction: column;
}

.console-container {
    flex: 1;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid #6272a4;
    border-radius: 8px;
    margin: 15px 0;
    padding: 10px;
    overflow-y: auto;
    font-family: 'Consolas', 'Monaco', monospace;
}

.console-output {
    padding: 10px;
    color: #f8f8f2;
    white-space: pre-wrap;
    font-size: 0.9em;
    line-height: 1.4;
}

.console-output .log-entry {
    margin: 2px 0;
    padding: 2px 5px;
    border-radius: 4px;
    animation: fadeIn 0.3s ease;
}

.console-output .info {
    color: #50fa7b;
}

.console-output .error {
    color: #ff5555;
    background: rgba(255, 85, 85, 0.1);
}

.console-output .warning {
    color: #ffb86c;
    background: rgba(255, 184, 108, 0.1);
}

.console-controls {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 10px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Style for the console button in the side panel */
.console-button {
    background: rgba(98, 114, 164, 0.2) !important;
    border-color: #6272a4 !important;
    color: #6272a4 !important;
}

.console-button:hover {
    background: rgba(98, 114, 164, 0.3) !important;
    color: #f8f8f2 !important;
}

/* Add these styles for the folder select */
.workflow-folder-select {
    margin-bottom: 20px;
    padding: 10px;
    background: rgba(40, 42, 54, 0.5);
    border-radius: 8px;
    border: 1px solid rgba(255, 121, 198, 0.2);
}

.workflow-folder-select label {
    display: block;
    margin-bottom: 8px;
    color: #ff79c6;
    font-size: 0.9em;
}

.workflow-folder-select select {
    width: 100%;
    padding: 8px 12px;
    background: rgba(40, 42, 54, 0.8);
    border: 2px solid #ff79c6;
    border-radius: 5px;
    color: #f8f8f2;
    font-size: 0.9em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.workflow-folder-select select:hover {
    background: rgba(40, 42, 54, 0.9);
    box-shadow: 0 0 15px rgba(255, 121, 198, 0.2);
}

.workflow-folder-select select:focus {
    outline: none;
    box-shadow: 0 0 20px rgba(255, 121, 198, 0.3);
}

.workflow-folder-select select option {
    background: #282a36;
    color: #f8f8f2;
    padding: 8px;
}

/* Add these styles for the folder browser */
.folder-browser-modal .modal-content {
    width: 600px;
    max-width: 90vw;
}

.current-path {
    background: rgba(40, 42, 54, 0.5);
    padding: 10px 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    border: 1px solid rgba(255, 121, 198, 0.2);
    font-family: monospace;
    word-break: break-all;
}

.folder-list {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid rgba(255, 121, 198, 0.2);
    border-radius: 8px;
    margin: 15px 0;
}

.folder-item {
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 121, 198, 0.1);
}

.folder-item:last-child {
    border-bottom: none;
}

.folder-item:hover {
    background: rgba(255, 121, 198, 0.1);
}

.folder-item .folder-icon {
    font-size: 1.2em;
}

.folder-item .folder-name {
    flex-grow: 1;
}

.folder-item .json-badge {
    background: rgba(80, 250, 123, 0.2);
    color: #50fa7b;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8em;
}

.folder-controls {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 121, 198, 0.2);
}

/* Update the workflow folder select */
.folder-select-container {
    display: flex;
    gap: 10px;
}

.browse-button {
    background: rgba(40, 42, 54, 0.8);
    border: 2px solid #ff79c6;
    color: #ff79c6;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.browse-button:hover {
    background: rgba(255, 121, 198, 0.2);
    transform: translateY(-2px);
}

#workflowFolder {
    flex-grow: 1;
}

/* Add these styles for the browser controls and items */
.browser-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.show-all-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ff79c6;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 5px;
    background: rgba(40, 42, 54, 0.5);
    border: 1px solid rgba(255, 121, 198, 0.2);
    transition: all 0.3s ease;
}

.show-all-toggle:hover {
    background: rgba(255, 121, 198, 0.1);
}

.show-all-toggle input {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.folder-item .item-icon {
    font-size: 1.2em;
    min-width: 24px;
    text-align: center;
}

.folder-item .item-name {
    flex-grow: 1;
    margin-right: 10px;
}

.folder-item .item-badge {
    font-size: 0.8em;
    padding: 2px 8px;
    border-radius: 12px;
    background: rgba(80, 250, 123, 0.2);
    color: #50fa7b;
}

.folder-item .file-badge {
    background: rgba(189, 147, 249, 0.2);
    color: #bd93f9;
}

.folder-item.file {
    padding-left: 25px;
}

/* Update current path styles */
.current-path {
    flex: 1;
    margin-right: 15px;
    padding: 10px 15px;
    background: rgba(40, 42, 54, 0.5);
    border-radius: 8px;
    border: 1px solid rgba(255, 121, 198, 0.2);
    font-family: monospace;
    word-break: break-all;
}

/* Add these styles for the health check button and results modal */
.health-check {
    background: rgba(80, 250, 123, 0.2) !important;
    border-color: #50fa7b !important;
    color: #50fa7b !important;
}

.health-check:hover {
    background: rgba(80, 250, 123, 0.3) !important;
}

.health-check:disabled {
    opacity: 0.5;
    cursor: wait;
}

.connection-results-modal .modal-content {
    background: rgba(40, 42, 54, 0.95);
    border-radius: 15px;
    padding: 20px;
    min-width: 300px;
    max-width: 500px;
}

.test-results {
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.test-item {
    padding: 15px;
    border-radius: 8px;
    background: rgba(40, 42, 54, 0.8);
    border: 1px solid rgba(255, 121, 198, 0.2);
}

.test-item.success {
    border-color: #50fa7b;
    background: rgba(80, 250, 123, 0.1);
}

.test-item.failure {
    border-color: #ff5555;
    background: rgba(255, 85, 85, 0.1);
}

.test-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
}

.test-icon {
    font-size: 1.2em;
}

.test-name {
    font-weight: bold;
    color: #ff79c6;
}

.test-details {
    margin-left: 25px;
    font-size: 0.9em;
    color: #6272a4;
}

.test-item.success .test-details {
    color: #50fa7b;
}

.test-item.failure .test-details {
    color: #ff5555;
}

/* Add these styles for the view toggle buttons */
.view-toggle {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.toggle-button {
    flex: 1;
    background: rgba(40, 42, 54, 0.8) !important;
    border: 2px solid #6272a4 !important;
    color: #6272a4 !important;
    padding: 8px 12px !important;
    transition: all 0.3s ease !important;
}

.toggle-button.active {
    background: rgba(80, 250, 123, 0.2) !important;
    border-color: #50fa7b !important;
    color: #50fa7b !important;
    font-weight: bold;
}

.toggle-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(98, 114, 164, 0.3);
}

.view-content {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.view-content.active {
    display: block;
    opacity: 1;
}

/* Add styles for the main content views */
#imageGalleryView, #textGalleryView {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#imageGalleryView.active, #textGalleryView.active {
    display: block;
    opacity: 1;
}

.placeholder-message {
    text-align: center;
    padding: 20px;
    color: #6272a4;
    font-style: italic;
}

/* Add styles for text cards */
.text-card {
    background: rgba(40, 42, 54, 0.8);
    border-radius: 15px;
    overflow: hidden;
    border: 2px solid #bd93f9;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    margin: 10px;
    cursor: pointer;
}

.text-card:hover {
    transform: scale(1.05) translateY(-5px);
    box-shadow: 
        0 10px 20px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(189, 147, 249, 0.4);
}

.text-preview-container {
    height: 200px;
    padding: 15px;
    background: rgba(40, 42, 54, 0.9);
    overflow: hidden;
}

.text-preview {
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.9em;
    color: #f8f8f2;
    white-space: pre-wrap;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 8;
    -webkit-box-orient: vertical;
}

.text-info {
    padding: 15px;
    background: rgba(40, 42, 54, 0.9);
    border-top: 1px solid rgba(189, 147, 249, 0.2);
}

#textGalleryView .title-text {
    color: #bd93f9;
    text-shadow: 0 0 10px #bd93f9, 0 0 20px #bd93f9;
}

#textGalleryView .btn-sort {
    border-color: #bd93f9;
    color: #bd93f9;
}

#textGalleryView .btn-sort:hover {
    background: rgba(189, 147, 249, 0.2);
}

#textGalleryView .btn-sort.active {
    background: #bd93f9;
    color: #282a36;
}

#textGalleryView .search-input {
    border-color: #bd93f9;
    color: #bd93f9;
}

#textGalleryView .search-input:focus {
    box-shadow: 0 0 20px rgba(189, 147, 249, 0.3);
}

/* Update the gallery container styles */
.gallery-container {
    display: none;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    transition: all 0.3s ease;
}

.gallery-container.active {
    display: block;
}

/* Add hover indicator */
.side-panel::after {
    content: '›';
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    color: #ff79c6;
    font-size: 24px;
    width: 20px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(40, 42, 54, 0.8);
    border-radius: 0 5px 5px 0;
    border: 2px solid #ff79c6;
    border-left: none;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.side-panel:hover::after,
.side-panel.visible::after,
.side-panel.pinned::after {
    opacity: 0;
    transform: translate(20px, -50%);
}

.title-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 30px auto;
    padding: 0 20px;
}

.title-text {
    color: #ff79c6;
    text-shadow: 0 0 10px #ff79c6, 0 0 20px #ff79c6;
    font-size: clamp(1.5em, 4vw, 2.5em); /* Responsive font size */
    margin: 0;
    padding: 20px 0;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: clamp(10px, 2vw, 20px);
    padding: clamp(10px, 2vw, 20px);
}

/* Responsive adjustments */
@media (max-width: 1240px) {
    .gallery-container,
    .title-container {
        max-width: 900px;
    }
    
    .gallery {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media (max-width: 940px) {
    .gallery-container,
    .title-container {
        max-width: 600px;
    }
}

@media (max-width: 640px) {
    .gallery-container,
    .title-container {
        max-width: 100%;
        padding: 10px;
    }
    
    .gallery {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 10px;
        padding: 10px;
    }
    
    .title-text {
        font-size: 1.5em;
        padding: 15px 0;
    }
}

/* Update main content styles */
.main-content {
    margin-left: 20px;
    width: calc(100% - 20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 100vh;
    padding-top: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.main-content.shifted {
    margin-left: 250px;
    width: calc(100% - 250px);
}

/* Update sorting controls to match container width */
.sorting-controls {
    position: sticky;
    top: 0;
    z-index: 90;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 20px auto;
    padding: 15px 20px;
    background: linear-gradient(180deg, rgba(45, 10, 63, 0.95), rgba(26, 5, 34, 0.95));
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 121, 198, 0.2);
    transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Responsive adjustments for side panel */
@media (max-width: 768px) {
    .main-content.shifted {
        margin-left: 200px;
        width: calc(100% - 200px);
    }
    
    .sorting-controls {
        padding: 10px;
    }
}

@media (max-width: 576px) {
    .main-content,
    .main-content.shifted {
        margin-left: 0;
        width: 100%;
    }
    
    .sorting-controls {
        padding: 5px;
    }
    
    .sort-buttons {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .btn-sort {
        font-size: 0.9em;
        padding: 6px 12px;
    }
}

/* Update side panel z-index */
.side-panel {
    z-index: 100;
}

/* Update main content styles */
.main-content {
    margin-left: 20px;
    width: calc(100% - 20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 100vh;
    padding-top: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.main-content.shifted {
    margin-left: 250px;
    width: calc(100% - 250px);
}

.main-content.shifted .sorting-controls {
    margin-left: 0;
    width: 100%;
}

/* Update z-index hierarchy */
.server-status { z-index: 95; }
.side-panel-trigger { z-index: 99; }
.modal { z-index: 1000; }
.toast { z-index: 2000; }

/* Add these styles for text card selection */
.text-card.selected {
    border-color: #50fa7b;
    transform: translateY(-5px);
    box-shadow: 
        0 0 20px rgba(80, 250, 123, 0.4),
        0 0 40px rgba(80, 250, 123, 0.2),
        0 0 60px rgba(80, 250, 123, 0.1);
    animation: selectedThrob 2s ease-in-out infinite;
}

/* Update the selection actions for text files */
.selection-actions {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(40, 42, 54, 0.95);
    padding: 15px 25px;
    border-radius: 30px;
    display: flex;
    gap: 15px;
    z-index: 1000;
    transition: transform 0.3s ease;
    border: 2px solid #ff79c6;
}

#textGalleryView .selection-actions {
    border-color: #bd93f9;
}

#textGalleryView .btn-delete-selected {
    background: rgba(255, 85, 85, 0.2);
    border-color: #ff5555;
}

/* Add styles for console options menu */
.console-options-menu {
    background: rgba(40, 42, 54, 0.95);
    border: 2px solid #6272a4;
    border-radius: 8px;
    padding: 5px;
    z-index: 1000;
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.console-options-menu .menu-item {
    padding: 8px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    color: #6272a4;
    transition: all 0.2s ease;
    border-radius: 4px;
    white-space: nowrap;
}

.console-options-menu .menu-item:hover {
    background: rgba(98, 114, 164, 0.2);
    color: #f8f8f2;
}

.console-options-menu .menu-icon {
    font-size: 1.2em;
}

/* Add dropdown icon to console button */
.dropdown-icon {
    margin-left: auto;
    font-size: 0.8em;
    transition: transform 0.2s ease;
}

.console-button:hover .dropdown-icon {
    transform: translateY(2px);
}

/* Add LLM Chat View styles */
#llmChatView .title-text {
    color: #50fa7b;
    text-shadow: 0 0 10px #50fa7b, 0 0 20px #50fa7b;
}

.chat-controls {
    position: sticky;
    top: 0;
    z-index: 90;
    width: 100%;
    max-width: calc(250px * 4 + 60px);
    margin: 0 auto 20px auto;
    padding: 15px 20px;
    background: linear-gradient(180deg, rgba(45, 10, 63, 0.95), rgba(26, 5, 34, 0.95));
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(80, 250, 123, 0.2);
    border-radius: 0 0 15px 15px;
}

.model-selection {
    display: flex;
    gap: 10px;
    align-items: center;
}

.model-dropdown {
    flex: 1;
    padding: 10px 15px;
    background: rgba(40, 42, 54, 0.8);
    border: 2px solid #50fa7b;
    border-radius: 8px;
    color: #50fa7b;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.model-dropdown:hover {
    background: rgba(80, 250, 123, 0.1);
}

.refresh-models-btn {
    background: rgba(40, 42, 54, 0.8);
    border: 2px solid #50fa7b;
    color: #50fa7b;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.refresh-models-btn:hover {
    background: rgba(80, 250, 123, 0.1);
    transform: translateY(-2px);
}

.chat-container {
    max-width: calc(250px * 4 + 60px);
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: calc(100vh - 300px);
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: rgba(40, 42, 54, 0.8);
    border: 2px solid #50fa7b;
    border-radius: 15px;
    padding: 20px;
}

.chat-message {
    margin-bottom: 15px;
    padding: 10px 15px;
    border-radius: 10px;
    max-width: 80%;
}

.user-message {
    background: rgba(80, 250, 123, 0.1);
    border: 1px solid #50fa7b;
    margin-left: auto;
    color: #50fa7b;
}

.assistant-message {
    background: rgba(189, 147, 249, 0.1);
    border: 1px solid #bd93f9;
    margin-right: auto;
    color: #bd93f9;
}

.system-message {
    text-align: center;
    color: #6272a4;
    font-style: italic;
    padding: 20px;
}

.chat-input-container {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.chat-input {
    flex: 1;
    padding: 15px;
    background: rgba(40, 42, 54, 0.8);
    border: 2px solid #50fa7b;
    border-radius: 10px;
    color: #f8f8f2;
    font-size: 1em;
    resize: none;
    transition: all 0.3s ease;
}

.chat-input:focus {
    outline: none;
    box-shadow: 0 0 20px rgba(80, 250, 123, 0.2);
    background: rgba(40, 42, 54, 1);
}

.send-button {
    background: #50fa7b;
    border: none;
    color: #282a36;
    padding: 15px 25px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.send-button:disabled {
    background: #2c4a3e;
    color: rgba(255, 255, 255, 0.5);
    cursor: not-allowed;
}

.send-button:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(80, 250, 123, 0.3);
}

/* Add loading animation for messages */
.loading-message {
    display: flex;
    gap: 5px;
    padding: 10px;
    color: #6272a4;
}

.loading-dot {
    width: 8px;
    height: 8px;
    background: #6272a4;
    border-radius: 50%;
    animation: loadingDot 1.5s infinite;
}

.loading-dot:nth-child(2) { animation-delay: 0.2s; }
.loading-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes loadingDot {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.clear-storage-btn {
    background: rgba(255, 85, 85, 0.2);
    border: 2px solid #ff5555;
    color: #ff5555;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.clear-storage-btn:hover {
    background: rgba(255, 85, 85, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 85, 85, 0.3);
}

/* Add these styles for the workflow view */
.workflow-controls {
    position: sticky;
    top: 0;
    z-index: 90;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 20px auto;
    padding: 15px 20px;
    background: linear-gradient(180deg, rgba(45, 10, 63, 0.95), rgba(26, 5, 34, 0.95));
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 121, 198, 0.2);
}

.workflow-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.workflow-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.workflow-button {
    background: rgba(40, 42, 54, 0.8);
    border: 2px solid #50fa7b;
    color: #50fa7b;
    padding: 8px 15px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.workflow-button:hover:not(:disabled) {
    background: rgba(80, 250, 123, 0.2);
    transform: translateY(-2px);
}

.workflow-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.workflow-parameters {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.workflow-node {
    background: rgba(40, 42, 54, 0.8);
    border: 2px solid #6272a4;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
}

.workflow-node h3 {
    color: #50fa7b;
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(80, 250, 123, 0.2);
}

.workflow-widget {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.workflow-widget label {
    min-width: 150px;
    color: #f8f8f2;
}

.workflow-input {
    flex: 1;
    min-width: 200px;
    padding: 8px 12px;
    background: rgba(40, 42, 54, 0.8);
    border: 2px solid #6272a4;
    border-radius: 5px;
    color: #f8f8f2;
    font-size: 0.9em;
    transition: all 0.3s ease;
}

.workflow-input:focus {
    outline: none;
    border-color: #50fa7b;
    box-shadow: 0 0 15px rgba(80, 250, 123, 0.2);
}

.workflow-input[type="checkbox"] {
    min-width: auto;
    width: 20px;
    height: 20px;
}

.workflow-input[type="number"] {
    width: 100px;
}

select.workflow-input {
    cursor: pointer;
}

select.workflow-input option {
    background: #282a36;
    color: #f8f8f2;
    padding: 8px;
}